{include file="mobile/_banner"}

<div class="am-row am-text-center">
    {if condition='empty($typeId)'}
    <a href="{:url('/mobile/index/news')}" class="am-btn am-btn-warning am-round">全部新闻</a>
    {else}
    <a href="{:url('/mobile/index/news')}" class="am-btn am-btn-default am-round am-btn-back">全部新闻</a>
    {/if}
    {volist name='typeList' id='vo'}
    {if condition='$typeId == $vo.id'}
    <a href="{:url('/mobile/index/news',['typeId'=>$vo.id])}" class="am-btn am-btn-warning am-round">{$vo.typeName}</a>
    {else}
    <a href="{:url('/mobile/index/news',['typeId'=>$vo.id])}" class="am-btn am-btn-default am-round am-btn-back">{$vo.typeName}</a>
    {/if}
    {/volist}
</div>

<div data-am-widget="list_news" class="am-list-news am-list-news-default">

    <div class="am-list-news-bd">
        <ul class="am-list">
            <!--缩略图在标题左边-->
            {volist name='newsList' id='vo'}
            <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
                <div class="am-u-sm-5 am-list-thumb">
                    <a href="{:url('/mobile/index/newsInfo',['id'=>$vo.id,'typeId'=>$typeId])}" class="">
                        <img src="__UPLOAD__/{$vo.img}" alt=""/>
                    </a>
                </div>

                <div class=" am-u-sm-7 am-list-main">
                    <h3 class="am-list-item-hd"><a
                            href="{:url('/mobile/index/newsInfo',['id'=>$vo.id,'typeId'=>$typeId])}" class="">{$vo.newsName}</a>
                    </h3>
                    <span class="">{$vo.created|date='Y-m-d',###}</span>
                    <div class="am-list-item-text">
                        {$vo.newsCruces}
                    </div>
                </div>
            </li>
            {/volist}
        </ul>
    </div>

</div>

<div class="am-pagination-centered">
    {$newsList->render()}
</div>